package com.huiying.properties;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: lsh
 * @Date: 2024/10/15/19:47
 * @Description: jwt令牌相关配置
 */
@Getter
@Component
@ConfigurationProperties(prefix = "huiying.jwt")
public class JwtProperties {
    /**
     * 用户端微信用户生成jwt令牌相关配置
     */
    private String userSecretKey;
    private long userTtl;
    private String userTokenName;


    public void setUserSecretKey(String userSecretKey) {
        this.userSecretKey = userSecretKey;
    }

    public void setUserTtl(long userTtl) {
        this.userTtl = userTtl;
    }

    public void setUserTokenName(String userTokenName) {
        this.userTokenName = userTokenName;
    }
}
